home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / SWI / source / src / pl-main.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-07  |  2.5 KB  |  94 lines

  1. /*  $Id: pl-main.h,v 1.20 1997/08/07 07:58:15 jan Exp $
  2.  
  3.     Copyright (c) 1990 Jan Wielemaker. All rights reserved.
  4.     See ../LICENCE to find out about your rights.
  5.     jan@swi.psy.uva.nl
  6.  
  7.     Purpose: System dependent parameters
  8. */
  9.  
  10.         /********************************
  11.         *           STRUCTURES        *
  12.         ********************************/
  13.  
  14. typedef struct
  15. { char *state;                /* system's boot file */
  16.   char *startup;            /* default user startup file */
  17.   int  local;                /* default local stack size (K) */
  18.   int  global;                /* default global stack size (K) */
  19.   int  trail;                /* default trail stack size (K) */
  20.   int  argument;            /* default argument stack size (K) */
  21.   int  heap;                /* default heap size (K) */
  22.   char *goal;                /* default initialisation goal */
  23.   char *toplevel;            /* default top level goal */
  24.   bool notty;                /* use tty? */
  25.   char *arch;                /* machine/OS we are using */
  26.   char *home;                /* systems home directory */
  27. } pl_defaults_t; 
  28.  
  29. typedef struct
  30. { long        localSize;        /* size of local stack */
  31.   long        globalSize;        /* size of global stack */
  32.   long        trailSize;        /* size of trail stack */
  33.   long        argumentSize;        /* size of argument stack */
  34.   long        heapSize;        /* size of the heap */
  35.   char *    goal;            /* initial goal */
  36.   char *    topLevel;        /* toplevel goal */
  37.   char *    initFile;        /* -f initialisation file */
  38.   char *    systemInitFile;        /* -F initialisation file */
  39.   char *    compileOut;        /* file to store compiler output */
  40. } pl_options_t;
  41.  
  42.  
  43.         /********************************
  44.         *           PARAMETERS        *
  45.         ********************************/
  46.  
  47. #ifndef DEFSTARTUP
  48. #define DEFSTARTUP ".plrc"
  49. #endif
  50. #ifndef SYSTEMHOME
  51. #define SYSTEMHOME "/usr/local/lib/pl"
  52. #endif
  53.  
  54. #ifndef ARCH
  55. #define ARCH "unknown"
  56. #endif
  57. #ifndef OS
  58. #define OS "unknown"
  59. #endif
  60.  
  61. #if O_DYNAMIC_STACKS || O_SHIFT_STACKS
  62. #define DEF_DEFLOCAL    2000
  63. #define DEF_DEFGLOBAL    4000
  64. #define DEF_DEFTRAIL    4000
  65. #define DEF_DEFHEAP        0        /* unlimited */
  66. #if O_DYNAMIC_STACKS
  67. #define DEF_DEFARGUMENT 1000
  68. #else
  69. #define DEF_DEFARGUMENT 16
  70. #endif /*O_DYNAMIC_STACKS*/
  71. #else                    /* static stack areas */
  72. #define DEF_DEFLOCAL    200
  73. #define DEF_DEFGLOBAL    400
  74. #define DEF_DEFTRAIL    200
  75. #define DEF_DEFARGUMENT  16
  76. #define DEF_DEFHEAP       0        /* unlimited */
  77. #endif
  78.  
  79. #ifndef DEFLOCAL
  80. #define DEFLOCAL    DEF_DEFLOCAL
  81. #endif
  82. #ifndef DEFGLOBAL
  83. #define DEFGLOBAL   DEF_DEFGLOBAL
  84. #endif
  85. #ifndef DEFTRAIL
  86. #define DEFTRAIL    DEF_DEFTRAIL
  87. #endif
  88. #ifndef DEFARGUMENT
  89. #define DEFARGUMENT DEF_DEFARGUMENT
  90. #endif
  91. #ifndef DEFHEAP
  92. #define DEFHEAP     DEF_DEFHEAP
  93. #endif
  94.